package com.feel.mall.common.service;

import com.feel.mall.common.bean.User;
import com.feel.mall.common.exception.FeelException;

import java.math.BigDecimal;

/**
 * @Author: 刘永钦
 * @Description:
 */
public interface UserService {
    User login(String username, String password) throws FeelException;

    Object selectByCondition(User condition, Integer pageNum, Integer pageSize);

    void addInfo(User user) throws FeelException;

    User selectById(Integer id);

    void updateInfo(User user);

    Boolean changePwd(String password, String newPassword, Integer userId) throws FeelException;

    Boolean verifyPayPassword(String payPassword, Integer userId) throws FeelException;

    Boolean changePayPassword(String payPassword, String newPayPassword, Integer userId) throws FeelException;

    Boolean rechargeBalance(BigDecimal money, Integer userId) throws FeelException;
}
